package com.lzh.lzhframework.domain.entity.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * 用户反馈信息
 *
 * @Author luzhiheng
 * @Date 2023/12/10 16:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("user_feedback")
public class UserFeedbackEntity {

    /**
     * 主键 _id
     */
    @Id
    private String id;

    /**
     * 反馈用户id
     */
    @Field("user_id")
    private Long userId;

    /**
     * 管理员id
     */
    @Field("admin_id")
    private Long adminId;

    /**
     * 是否已读 0未读 1已读
     */
    @Field("is_read")
    private Boolean isRead;

    /**
     * 反馈信息id
     */
    @Field("feedback_id")
    private Long feedbackId;

    /**
     * 创建时间
     */
    @Field("create_time")
    private Date createTime;
}
